package package4;

public class Animal {
    private String name;
    private int age;

    public void eat(String food){
        System.out.println(name + "正在吃" + food);
    }

    public void sleeo(){
        System.out.println(name + "在睡觉");
    }

    public void setName(String name) {
        this.name = name;
    }
}
